
'''

for i in range(5):
    print(i)
'''

'''

for i in range(0, 10, 3):
    print(i) 
'''

'''
for i in range(-10, -100, -30):
    print(i)
'''

'''
name = "chengdu"

for x in name:
    print(x, end="\t")
'''

'''
a = ["aa", "bb", "cc", "dd"]

for i in range(len(a)):
    print(i, a[i])
'''

'''
i = 0
while i < 5:
    print("当前是第%d次执行循环" %(i+1))
    print("i=%d"%i)
    i += 1
'''

'''
# 1到100求和
n = 100
sum = 0
counter = 1
while counter <= n:
    sum = sum + counter
    counter += 1

print("1到%d的和为 %d" %(n, sum))
'''


'''
# while可以和else并列使用
count = 0
while count < 5:
    print(count, "小于5")
    count += 1
else:
    print(count, "大于或等于5")
'''


'''
i = 0
while i < 10:
    i = i+1
    print("-"*30) # 打印30次 -
    if i == 5:
        break # 结束整个 while 循环
    print(i)
'''


i = 0
while i < 10:
    i = i+1
    print("-"*30) # 打印30次 -
    if i == 5:
        continue # 当 i = 5 的时候不会打印,本次循环里边都不会被执行 直接continue,结束本次循环
    print(i)